namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// ——配置 - 货位对应异常口路线
    /// </summary>
    public DbSet<POWcsNetAbnormal> WcsNetAbnormals { get; set; }
}

/// <summary>
/// ——配置 - 货位对应异常口路线
/// 表[wcs_net_abnormal]
/// </summary>
[Table("wcs_net_abnormal")]
public class POWcsNetAbnormal
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[wcs_net_abnormal.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 位置ID，设备ID[堆垛机]
    /// [wcs_net_abnormal.start_loc)]
    /// </summary>
    [Column("start_loc")]
    public long? StartLoc { get; set; }
    /// <summary>
    /// 货位Id（异常口）
    /// [wcs_net_abnormal.target_loc)]
    /// </summary>
    [Column("target_loc")]
    public long? TargetLoc { get; set; }
    /// <summary>
    /// [wcs_net_abnormal.reamrk)]
    /// </summary>
    [Column("reamrk")]
    public string Reamrk { get; set; }
    /// <summary>
    /// [wcs_net_abnormal.cache_loc)]
    /// </summary>
    [Column("cache_loc")]
    public long? CacheLoc { get; set; }
    /// <summary>
    /// 关系分，分数越高约远
    /// [wcs_net_abnormal.relate_score)]
    /// </summary>
    [Column("relate_score")]
    public int? RelateScore { get; set; }
    /// <summary>
    /// 默认负责执行异常任务ems
    /// [wcs_net_abnormal.ems1)]
    /// </summary>
    [Column("ems1")]
    public long? Ems1 { get; set; }
    /// <summary>
    /// 默认ems不可用，可用候补ems
    /// [wcs_net_abnormal.ems2)]
    /// </summary>
    [Column("ems2")]
    public long? Ems2 { get; set; }
    /// <summary>
    /// 创建时间
    /// [wcs_net_abnormal.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [wcs_net_abnormal.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [wcs_net_abnormal.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// 货位2，第二个异常货位
    /// [wcs_net_abnormal.target_loc1)]
    /// </summary>
    [Column("target_loc1")]
    public long? TargetLoc1 { get; set; }
    /// <summary>
    /// 当前进的异常货位
    /// [wcs_net_abnormal.now_loc)]
    /// </summary>
    [Column("now_loc")]
    public long? NowLoc { get; set; }
}
